package demo2;

public class Test {
    public static void main(String[] args) {
        demo2.OutClass out = new demo2.OutClass();
        //方式一
        demo2.OutClass.InnerClass inner = out.new InnerClass();
        //方式二
        demo2.OutClass.InnerClass inner2 = new OutClass().new InnerClass();

        inner2.test();
    }
}
